package cate.game.cross.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBCross;

@ClientMsg(title = "本服跨服数据&配置 の 请求")
public class CrossLocalReq implements MsgInput {
    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.sendNow(new CrossLocalResp(game.config.isCrossEnabled(), game.cross.getWorldLevel()));
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBCross.DATA_REQ;
    }
}
